#include "Computer.h"
#include "../SGD Wrappers/SGD_Event.h"

Computer::Computer() : Listener(this)
{
	


	m_szSize = { 64, 64 };
}


Computer::~Computer()
{
	UnregisterFromEvent(triggerEvent.c_str());
}

void Computer::HandleEvent(const SGD::Event* pEvent)
{
	if (pEvent->GetEventID() == triggerEvent.c_str())
	{
		SGD::Event* msg = new SGD::Event(shutDownEvent.c_str());
		msg->QueueEvent();
		msg = nullptr;
	}
}


void Computer::HandleCollision(const IBase* pOther)
{
	

}
//SGD::Rectangle Computer::GetRect(void)	const
//{
//	return SGD::Rectangle(m_ptPosition - m_szSize, m_szSize * 1.5f);
//
//}